﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using XCore.Domain.Entities;

namespace SaaS.Model.Entity.Logs
{
    /// <summary>
    /// 文件上传日志
    /// </summary>
    [Table("FileLogs")]
    public class FileLog : Entity<int>, IHasCreationTime
    {
        /// <summary>
        /// 文件大小
        /// </summary>
        public long Length { get; set; }
        /// <summary>
        /// 文件名
        /// </summary>
        [StringLength(256)]
        public string Name { get; set; }
        /// <summary>
        /// 文件类型
        /// </summary>
        [StringLength(32)]
        public string Type { get; set; }
        /// <summary>
        /// 文件夹
        /// </summary>
        [StringLength(256)]
        public string Folder { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        [StringLength(512)]
        public string Path { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
